package com.hua.Thread.ThreadPool;

/**
 * @author: _hua
 * @created: 2019/3/10.
 * @updater:
 * @description:
 */
public class BussinessServiceImpl implements BussinessService {

    @Override
    public void handleBussiness() {
        System.out.println("处理业务逻辑");

        // 为了观察线程是根据线程池设置的线程数，批量执行的，这里加上线程休眠
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
